package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("bill_record")
public class BillRecord implements Serializable {
    private static final long serialVersionUID = -7276707102501406274L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "id")
    private Long id;
    @ApiModelProperty(name = "account", value = "账号")
    private String account;
    @ApiModelProperty(name = "income", value = "收入")
    private BigDecimal income;
    @ApiModelProperty(name = "output", value = "支出")
    private BigDecimal output;
    @ApiModelProperty(name = "orderNo", value = "订单号")
    private String orderNo;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(name = "createDate", value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(name = "type", value = "类别(0.充值，1.分红，2.回收订单，3.提现，4.积分订单消费，5.家政服务订单消费)")
    private Integer type;
    @ApiModelProperty(name = "userType", value = "用户类型（1客户，2综合站，3门店，4.业务员）")
    private Integer userType;
    @ApiModelProperty(name = "userId", value = "用户主键")
    private Long userId;
    @TableField(exist = false)
    @ApiModelProperty(name = "orderCount", value = "总订单")
    private Integer orderCount;
    @ApiModelProperty(value = "提现状态")
    @TableField(exist = false)
    private String status;

}
